<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>React.Component 结构展示</title>
</head>
<body>
  <script>
    //声明类
    class Component{

    }
    //声明对象
    let React = {}
    //为React对象添加 Component 属性
    React.Component = Component;
    //继承
    class App extends React.Component{}
    //实例化对象
    let app = new App();

    console.log(app);

  </script>
</body>
</html>